home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Tech Arsenal 1
/
Tech Arsenal (Arsenal Computer).ISO
/
tek-01
/
pdcurs21.zip
/
PORTABLE.ZIP
/
NODELAY.C
< prev
next >
Wrap
Text File
|
1992-11-21
|
1KB
|
44 lines
#define CURSES_LIBRARY 1
#include <curses.h>
#undef nodelay
#ifndef NDEBUG
char *rcsid_nodelay = "$Header: c:/curses/portable/RCS/nodelay.c%v 2.0 1992/11/15 03:29:05 MH Rel $";
#endif
/*man-start*********************************************************************
nodelay() - disable block during read
X/Open Description:
This function controls whether wgetch() is a non-blocking
call. If the option is enabled, and no input is ready, wgetch()
will return ERR. If disabled, wgetch() will hang until input
is ready.
PDCurses Description:
There is no additional PDCurses functionality for this function.
X/Open Return Value:
This function returns OK on success and ERR on error.
X/Open Errors:
No errors are defined for this function.
Portability:
PDCurses int nodelay( WINDOW* win, bool bf );
X/Open Dec '88 int nodelay( WINDOW* win, bool bf );
BSD Curses int nodelay( WINDOW* win, bool bf );
SYS V Curses int nodelay( WINDOW* win, bool bf );
**man-end**********************************************************************/
int nodelay( WINDOW *win, bool flag )
{
win->_nodelay = flag;
return( OK );
}